// base.vo.ts
export default class BaseVo {
    public static ToVo<E, V>(entity: E) {
        const vo = new BaseVo();
        for (const key in entity as E) {
            if (Object.prototype.hasOwnProperty.call(entity, key)) {
                const element = entity[key];
                vo[key.toString()] = element
            }
        }
        return vo as V;
    }
}